<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body class="timo-layout-page">
    <div class="layui-card">
        <div class="layui-card-header timo-card-header">
            <span><i class="fa fa-bars"></i>订单管理</span>
            <i class="layui-icon layui-icon-refresh refresh-btn"></i>
        </div>
        <div class="layui-card-body">
             <div class="layui-row timo-card-screen">
                <div class="pull-left layui-form-pane timo-search-box">
                    <div class="layui-inline">
                        <label class="layui-form-label">支付状态</label>
                        <div class="layui-input-block timo-search-status" style="width: 120px;">
                        <select class="timo-search-select" name="payStatus" style="width: 120px;"> 
				    		<option value="">全部</option>
				    		<option value="0">待支付</option>
				    		<option value="1">已支付</option>
                            <option value="2">已退款</option>
                        </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn timo-search-btn">
                            <i class="fa fa-search"></i>
                        </button>
                    </div>
                </div>
                <div class="pull-right screen-btn-group">
                </div>
            </div>
            <div class="timo-table-wrap">
                <table class="layui-table timo-table">
                    <thead>
                    <tr>
                       <!--  <th class="timo-table-checkbox">
                            <label class="timo-checkbox"><input type="checkbox">
                                <i class="layui-icon layui-icon-ok"></i></label>
                        </th> -->
                        <th>主键ID</th>
                        <th>区域</th>
                        <th>昵称</th>
                        <th>订单号</th>
                        <th>手机号</th>
                        <th>状态</th>
                        <th>类型</th>
                        <th>收入</th>
                        <th>创建时间</th>
                   <!--      <th>操作</th>
                    --> </tr>
                    </thead>
                    <tbody>
                    <tr th:each="item:${list}">
                       <!--  <td><label class="timo-checkbox"><input type="checkbox" th:value="${item?.id}">
                            <i class="layui-icon layui-icon-ok"></i></label></td> -->
                        <td th:text="${item?.id}">主键ID</td>
                        <td th:text="${item?.areaName}">区域</td>
                        <td th:text="${item?.member?.nickname}">昵称</td>
                        <td th:text="${item?.orderCode}">订单号</td>
                        <td th:text="${item?.member?.mobile}">手机号</td>
                        <td th:switch="${item?.payStatus}" >
                            <span th:case="0">未支付</span>
                            <span th:case="1">已支付</span>
                            <span th:case="2">已退款</span>
                        </td>
                        <td th:text="${item?.typeValue}">类型</td>
                        <td th:text="${item?.money}">总收入</td>
                        <td th:text="${#dates.format(item?.createDate, 'yyyy-MM-dd HH:mm:ss')}">创建时间</td>
                      <!--   <td>
                         <a class="open-popup" data-title="详细信息" th:attr="data-url=@{'/member/agent/detail/'+${item.id}}" data-size="800,600" href="#">详细</a>
                         </td> -->
                    </tr>
                    </tbody>
                </table>
            </div>
            <div th:replace="/common/fragment :: page"></div>
        </div>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>